package com.lorrey.exception;

import lombok.Data;

/**
 * 功能：自定义异常
 * 作者：Lorrey
 * 日期：2024/2/25 17:31
 */
@Data
public class ServiceException extends RuntimeException {

    private final String code;

    public ServiceException(String msg) {
        super(msg);
        this.code = "500";
    }
    public ServiceException(String code,String msg) {
        super(msg);
        this.code = code;
    }
}
